package com.ItemsRent.model;
// default package

import java.util.HashSet;
import java.util.Set;

import org.apache.struts2.json.annotations.JSON;


/**
 * Customer entity. @author MyEclipse Persistence Tools
 */

public class Customer  implements java.io.Serializable {


    // Fields    

     private Integer customerId;
     private String number;
     private String customerPassword;
     private Integer customerStatus;
     private String customerName;
     private String qq;
     private String phone;
     private String address;
     private String email;
     private Integer customer_grade_id;
     private String photo;
     private Set orderForms = new HashSet(0);
     private Set items = new HashSet(0);


    // Constructors

    /** default constructor */
    public Customer() {
    }

	/** minimal constructor */
    public Customer(String number, String customerPassword, Integer customerStatus) {
        this.number = number;
        this.customerPassword = customerPassword;
        this.customerStatus = customerStatus;
    }
    
    /** full constructor */
    public Customer( String number, String customerPassword, Integer customerStatus, String customerName, String qq, String phone, String address, String email, Integer customer_grade_id, String photo) {
        this.number = number;
        this.customerPassword = customerPassword;
        this.customerStatus = customerStatus;
        this.customerName = customerName;
        this.qq = qq;
        this.phone = phone;
        this.address = address;
        this.email = email;
        this.customer_grade_id = customer_grade_id;
        this.photo = photo;
        this.orderForms = orderForms;
        this.items = items;
    }

   
    // Property accessors

    public Integer getCustomerId() {
        return this.customerId;
    }
    
    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getNumber() {
        return this.number;
    }
    
    public void setNumber(String number) {
        this.number = number;
    }

    public String getCustomerPassword() {
        return this.customerPassword;
    }
    
    public void setCustomerPassword(String customerPassword) {
        this.customerPassword = customerPassword;
    }

    public Integer getCustomerStatus() {
        return this.customerStatus;
    }
    
    public void setCustomerStatus(Integer customerStatus) {
        this.customerStatus = customerStatus;
    }

    public String getCustomerName() {
        return this.customerName;
    }
    
    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getQq() {
        return this.qq;
    }
    
    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getPhone() {
        return this.phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return this.address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }



    public Integer getCustomer_grade_id() {
		return customer_grade_id;
	}

	public void setCustomer_grade_id(Integer customer_grade_id) {
		this.customer_grade_id = customer_grade_id;
	}

	public String getPhoto() {
        return this.photo;
    }
    
    public void setPhoto(String photo) {
        this.photo = photo;
    }
    @JSON(serialize=false)
    public Set getOrderForms() {
        return this.orderForms;
    }
    
    @JSON(serialize=false)
    public Set getItems() {
        return this.items;
    }
    
    public void setItems(Set items) {
        this.items = items;
    }

	public void setOrderForms(Set orderForms) {
		this.orderForms = orderForms;
	}
   








}